import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//1.导入全局样式表
import '@/assets/global.less'
//完整引入 ElementUI
//(1)导包
import ElementUI from 'element-ui'
//(2)导入css样式
import 'element-ui/lib/theme-chalk/index.css'
//(3)注册所有组件
Vue.use(ElementUI)
Vue.config.productionTip = false

//3.导入 axios
import axios from 'axios'
//挂载到Vue原型中
Vue.prototype.$axios = axios
//设置基地址
axios.defaults.baseURL = 'http://big-event-vue-api-t.itheima.net'
// 4.挂载路由
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
